<?php $this->extend('comm/page');?>

<form class="layui-form form-horizontal" action="<?php echo $container->url->build(''); ?>" method="post">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="title" value="" lay-verify="required" lay-verType="tips" lay-reqText="请输入标题"
                placeholder="请输入标题" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">图片:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input type="text" class="form-control bootstrap-layui-input" lay-verify="required" lay-verType="tips" lay-reqText="请上传Logo" id="img" name="img" value="" />
                <a href="javascript:;" id="img_upload" class="btn-upload-img input-group-addon">图片上传</a>
                <a href="javascript:;" class="btn-search-img input-group-addon">查找资源</a>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">描述:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea placeholder="请输入描述" name="desc" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">跳转链接:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="layui-input" name="link" value="" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">权重:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="layui-input" name="sort" value="0" lay-verify="required|number"
                lay-verType="tips" placeholder="请输入排序权重" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            <?php echo $this->build_radios('status', ['1'=>'有效', '2'=>'无效'], 1, [], true); ?>
        </div>
    </div>
    <div class="layui-form-item hidden layer-footer">
        <div class="col-xs-12 text-right">
            <button type="submit" class="btn btn-success" lay-submit lay-filter="submit">确认提交</button>
            <button type="reset" class="btn btn-default">重置</button>
        </div>
    </div>
</form>